package com.chalk.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.chalk.model.Grade;
import com.chalk.dao.GradeDao;
import com.chalk.service.GradeService;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author glq
 * @since 2020-12-21
 */

@Service
public class GradeServiceImpl extends ServiceImpl<GradeDao, Grade> implements GradeService {

        @Override
        public int addGrade(Grade entity){
        return baseMapper.insert(entity);
        }

        @Override
        public int updateGrade(Grade entity){
        return baseMapper.updateById(entity);
        }


        @Override
        public int deleteGrade(Integer id){
        return baseMapper.deleteById(id);
        }
}
